{"ast":null,"code":"import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"cols\", \"component\", \"rowHeight\", \"gap\", \"style\", \"variant\"];\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport { integerPropType } from '@mui/utils';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport { getImageListUtilityClass } from './imageListClasses';\nimport ImageListContext from './ImageListContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    variant\n  } = ownerState;\n  const slots = {\n    root: ['root', variant]\n  };\n  return composeClasses(slots, getImageListUtilityClass, classes);\n};\nconst ImageListRoot = styled('ul', {\n  name: 'MuiImageList',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, styles[ownerState.variant]];\n  }\n})(_ref => {\n  let {\n    ownerState\n  } = _ref;\n  return _extends({\n    display: 'grid',\n    overflowY: 'auto',\n    listStyle: 'none',\n    padding: 0,\n    // Add iOS momentum scrolling for iOS < 13.0\n    WebkitOverflowScrolling: 'touch'\n  }, ownerState.variant === 'masonry' && {\n    display: 'block'\n  });\n});\nconst ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref) {\n  const props = useThemeProps({\n    props: inProps,\n    name: 'MuiImageList'\n  });\n  const {\n      children,\n      className,\n      cols = 2,\n      component = 'ul',\n      rowHeight = 'auto',\n      gap = 4,\n      style: styleProp,\n      variant = 'standard'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const contextValue = React.useMemo(() => ({\n    rowHeight,\n    gap,\n    variant\n  }), [rowHeight, gap, variant]);\n  React.useEffect(() => {\n    if (process.env.NODE_ENV !== 'production') {\n      // Detect Internet Explorer 8+\n      if (document !== undefined && 'objectFit' in document.documentElement.style === false) {\n        console.error(['MUI: ImageList v5+ no longer natively supports Internet Explorer.', 'Use v4 of this component instead, or polyfill CSS object-fit.'].join('\\n'));\n      }\n    }\n  }, []);\n  const style = variant === 'masonry' ? _extends({\n    columnCount: cols,\n    columnGap: gap\n  }, styleProp) : _extends({\n    gridTemplateColumns: `repeat(${cols}, 1fr)`,\n    gap\n  }, styleProp);\n  const ownerState = _extends({}, props, {\n    component,\n    gap,\n    rowHeight,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(ImageListRoot, _extends({\n    as: component,\n    className: clsx(classes.root, classes[variant], className),\n    ref: ref,\n    style: style,\n    ownerState: ownerState\n  }, other, {\n    children: /*#__PURE__*/_jsx(ImageListContext.Provider, {\n      value: contextValue,\n      children: children\n    })\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? ImageList.propTypes /* remove-proptypes */ = {\n  // ----------------------------- Warning --------------------------------\n  // | These PropTypes are generated from the TypeScript type definitions |\n  // |     To update them edit the d.ts file and run \"yarn proptypes\"     |\n  // ----------------------------------------------------------------------\n  /**\n   * The content of the component, normally `ImageListItem`s.\n   */\n  children: PropTypes /* @typescript-to-proptypes-ignore */.node.isRequired,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * Number of columns.\n   * @default 2\n   */\n  cols: integerPropType,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * The gap between items in px.\n   * @default 4\n   */\n  gap: PropTypes.number,\n  /**\n   * The height of one row in px.\n   * @default 'auto'\n   */\n  rowHeight: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),\n  /**\n   * @ignore\n   */\n  style: PropTypes.object,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The variant to use.\n   * @default 'standard'\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['masonry', 'quilted', 'standard', 'woven']), PropTypes.string])\n} : void 0;\nexport default ImageList;","map":{"version":3,"names":["_objectWithoutPropertiesLoose","_extends","_excluded","unstable_composeClasses","composeClasses","integerPropType","clsx","PropTypes","React","styled","useThemeProps","getImageListUtilityClass","ImageListContext","jsx","_jsx","useUtilityClasses","ownerState","classes","variant","slots","root","ImageListRoot","name","slot","overridesResolver","props","styles","display","overflowY","listStyle","padding","WebkitOverflowScrolling","ImageList","forwardRef","inProps","ref","children","className","cols","component","rowHeight","gap","style","styleProp","other","contextValue","useMemo","useEffect","process","env","NODE_ENV","document","undefined","documentElement","console","error","join","columnCount","columnGap","gridTemplateColumns","as","Provider","value","propTypes","node","isRequired","object","string","elementType","number","oneOfType","oneOf","sx","arrayOf","func","bool"],"sources":["/data/messenger.client/node_modules/@mui/material/esm/ImageList/ImageList.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"cols\", \"component\", \"rowHeight\", \"gap\", \"style\", \"variant\"];\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport { integerPropType } from '@mui/utils';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport { getImageListUtilityClass } from './imageListClasses';\nimport ImageListContext from './ImageListContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    variant\n  } = ownerState;\n  const slots = {\n    root: ['root', variant]\n  };\n  return composeClasses(slots, getImageListUtilityClass, classes);\n};\nconst ImageListRoot = styled('ul', {\n  name: 'MuiImageList',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, styles[ownerState.variant]];\n  }\n})(({\n  ownerState\n}) => {\n  return _extends({\n    display: 'grid',\n    overflowY: 'auto',\n    listStyle: 'none',\n    padding: 0,\n    // Add iOS momentum scrolling for iOS < 13.0\n    WebkitOverflowScrolling: 'touch'\n  }, ownerState.variant === 'masonry' && {\n    display: 'block'\n  });\n});\nconst ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref) {\n  const props = useThemeProps({\n    props: inProps,\n    name: 'MuiImageList'\n  });\n  const {\n      children,\n      className,\n      cols = 2,\n      component = 'ul',\n      rowHeight = 'auto',\n      gap = 4,\n      style: styleProp,\n      variant = 'standard'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const contextValue = React.useMemo(() => ({\n    rowHeight,\n    gap,\n    variant\n  }), [rowHeight, gap, variant]);\n  React.useEffect(() => {\n    if (process.env.NODE_ENV !== 'production') {\n      // Detect Internet Explorer 8+\n      if (document !== undefined && 'objectFit' in document.documentElement.style === false) {\n        console.error(['MUI: ImageList v5+ no longer natively supports Internet Explorer.', 'Use v4 of this component instead, or polyfill CSS object-fit.'].join('\\n'));\n      }\n    }\n  }, []);\n  const style = variant === 'masonry' ? _extends({\n    columnCount: cols,\n    columnGap: gap\n  }, styleProp) : _extends({\n    gridTemplateColumns: `repeat(${cols}, 1fr)`,\n    gap\n  }, styleProp);\n  const ownerState = _extends({}, props, {\n    component,\n    gap,\n    rowHeight,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(ImageListRoot, _extends({\n    as: component,\n    className: clsx(classes.root, classes[variant], className),\n    ref: ref,\n    style: style,\n    ownerState: ownerState\n  }, other, {\n    children: /*#__PURE__*/_jsx(ImageListContext.Provider, {\n      value: contextValue,\n      children: children\n    })\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? ImageList.propTypes /* remove-proptypes */ = {\n  // ----------------------------- Warning --------------------------------\n  // | These PropTypes are generated from the TypeScript type definitions |\n  // |     To update them edit the d.ts file and run \"yarn proptypes\"     |\n  // ----------------------------------------------------------------------\n  /**\n   * The content of the component, normally `ImageListItem`s.\n   */\n  children: PropTypes /* @typescript-to-proptypes-ignore */.node.isRequired,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * Number of columns.\n   * @default 2\n   */\n  cols: integerPropType,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * The gap between items in px.\n   * @default 4\n   */\n  gap: PropTypes.number,\n  /**\n   * The height of one row in px.\n   * @default 'auto'\n   */\n  rowHeight: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),\n  /**\n   * @ignore\n   */\n  style: PropTypes.object,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The variant to use.\n   * @default 'standard'\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['masonry', 'quilted', 'standard', 'woven']), PropTypes.string])\n} : void 0;\nexport default ImageList;"],"mappings":"AAAA,OAAOA,6BAA6B,MAAM,yDAAyD;AACnG,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,MAAMC,SAAS,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC;AACxG,SAASC,uBAAuB,IAAIC,cAAc,QAAQ,WAAW;AACrE,SAASC,eAAe,QAAQ,YAAY;AAC5C,OAAOC,IAAI,MA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